<el-dialog :close-on-click-modal="false"  :close-on-press-escape="false"  :title="title" class="dialogStyleBase" width="500px" :visible.sync="boxVisible" append-to-body
    :before-close="editBoxCancel">
    <div class="dialogStyleBaseBox" >
        <el-form ref="editForm" :model="form" label-width="80px" label-position="left">
            <el-form-item label="订单编号"> {{item.orderNo}} </el-form-item>
            <el-form-item label="下单时间"> {{item.createdTimeStr}} </el-form-item>
            <el-form-item label="收货信息" v-if="item.orderReceiveAddress">
                <div>{{item.orderReceiveAddress.name}},
                    {{item.orderReceiveAddress.mobile}}</div>
                <div>{{item.orderReceiveAddress.province}},
                    {{item.orderReceiveAddress.city}},
                    {{item.orderReceiveAddress.region}},
                    {{item.orderReceiveAddress.street}}</div>
                <div>{{item.orderReceiveAddress.detailAddress}},</div>
            </el-form-item>
            <el-divider></el-divider>
            <el-form-item label="发货方式" prop="isNeedLogistics" required>
                <el-radio-group v-model="form.isNeedLogistics">
                    <el-radio :label="1">物流配送</el-radio>
                    <el-radio :label="0">无需物流</el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item v-if="form.isNeedLogistics==1" label="快递公司" prop="companyId"
                :rules="{ required: form.isNeedLogistics==1, message: '请选择 快递公司'}">
                <el-select v-model="form.companyId" style="width:100%;">
                    <el-option :label="item.companyName" :value="item.id" v-for="(item,index) in logisticsOptions"
                        :key="item.id"></el-option>
                </el-select>
            </el-form-item>
            <el-form-item v-if="form.isNeedLogistics==1" label="快递单号" prop="deliveryNo"
                :rules="{ required: form.isNeedLogistics==1, message: '请输入 快递单号'}">
                <el-input v-model="form.deliveryNo"></el-input>
            </el-form-item>

        </el-form>
    </div>
    <div slot="footer">
        <el-button @click="editBoxCancel()">取 消</el-button>
        <el-button type="primary" @click="submit()">确定</el-button>
    </div>
</el-dialog>